package grape.workflow.rest.comment.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * 任务添加评论表单
 * Created by yangwei
 * Created at 2020/7/10 19:00
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("任务添加评论表单对象")
public class TaskAddCommentForm extends BaseForm {


    @NotEmpty(message = "任务id不能为空")
    @ApiModelProperty("任务id")
    private String taskId;

    @NotEmpty(message = "审批意见/评论不能为空")
    @ApiModelProperty("审批意见/评论")
    private String comment;
}
